{temp('kefu/head')}
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i>首页
		<span class="c-gray en">&gt;</span>聊天记录
		<span class="c-gray en">&gt;</span>用户列表
		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	<div class="pd-20">
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort">
				<thead>
					<tr class="text-c">
						<th>用户</th>
						<th width="300">日期</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{foreach($r as $k => $v)}
					<tr class="text-c">
						<td>{$v}</td>
						<td>
							<select id="sztype_{$k}" class="select">
								{foreach($ar[$v] as $k1 => $v1)}
									<option value="{$v1}">{$v1}</option>
								{/foreach}
							</select>
						</td>
						<td class="f-14 td-manage">
							<button class="btn btn-primary radius" style="height:30px;background-color:#6b6b6b;border-color:#6b6b6b;" 
							onclick="ck({$k},{$v})">
							查看
							</button>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
	</div>
	<!-- onClick="article_edit('视频','{$_url}/kefu/?act=ltjl&met=lt_date&uid={$v['uid']}')" -->
	{temp('kefu/foot')}
	<script type="text/javascript">
	$('.table-sort').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
	});
	
	function ck(num,uid){
		var sztype = $("#sztype_"+num).val();
		article_edit('视频','{$_url}/kefu/?act=ltjl&met=ltxx&uid='+uid+'&date='+sztype);
	}
	
	/*资讯-编辑*/
	function article_edit(title,url,id,w,h){
		var index = layer.open({
			type: 2,
			title: title,
			content: url
		});
		layer.full(index);
	}
	</script>
</body>
</html>